<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?
/*****************************************************************************
 * 文件名：Options.php
 * 作用：Options控制器类 负责记录整个系统的配置信息
 * 创建时间：2010.1.20
 * 作者：赵鹏城
 * ****************************************************************************/
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统配置</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<a href="<?php echo url('WordBankAdmin');?>" target="_self" class="Dig"><strong>HOME</strong></a>
<form action="<?php echo url('VersionControl', 'Public');?>" method="post" enctype="application/x-www-form-urlencoded" name="add_option">
<table width="80%" border="0" align="center">
<tr>
  <td width="47%" height="24" bgcolor="#DFDFDF">
  <label>发行新一版词典
    <input type="submit" name="add_option" id="add_option" value="GO" />
  </label>
  <label>
    <input type="checkbox" name="build_bin" id="build_bin" value="1"/>
    是否Build二进制词典
  </label>
  </td>
</tr>
</table>
</form>
<p>&nbsp;</p>

<table width="80%" border="0" align="center">
<tr>
<td width="10%" height="24" bgcolor="#DFDFDF">版本名</td>
<td width="10%" bgcolor="#DFDFDF">查看文件</td>
<td width="10%" bgcolor="#DFDFDF">词量</td>
<td width="10%" bgcolor="#DFDFDF">操作</td>
</tr>
<?php
		foreach ($rowset as $row)
		{
$delete_url = url('VersionControl', 'DeleteVersion', array('id' => $row['id']));
print<<<eot
<tr>
<td height="24" bgcolor="#F3F3F3">{$row['version_name']}&nbsp;</td>
<td height="24" bgcolor="#F3F3F3">
<label>
<a href="{$row['href']}">查看文件</a>
</label>
</td>
<td height="24" bgcolor="#F3F3F3">
<label>
{$row['sum']}
</label>
</td>
<td height="24" bgcolor="#F3F3F3">
  <a href="{$delete_url}">
    <img width="16" height="16" src="/image/b_drop.png" alt="删除" title="删除">
  </a>
</td>
</tr>
eot;
}
?>
</table>
</body>
</html>
